home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group93a.txt
/
000078_icon-group-sender _Mon Mar 1 20:40:17 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-04-21
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 3 Mar 1993 05:04:19 MST
Date: 1 Mar 93 20:40:17 GMT
From: agate!howland.reston.ans.net!spool.mu.edu!olivea!pagesat!spssig.spss.com!uchinews!ellis!goer@ucbvax.Berkeley.EDU (Richard L. Goerwitz)
Organization: University of Chicago
Subject: Re: environment variables
Message-Id: <1993Mar1.204017.13953@midway.uchicago.edu>
References: <2560.9302282253@desktop.desktop.co.uk>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Steve Holden <steve@dtc.co.uk> writes:
>
>The example you quote of
>
> system("export DISPLAY=bandit.ucs:0")
>
>doesn't work because system creates a subshell to run its commands in.
The results would be operating system independent, actually. Getenv
itself is, in fact, quite OS dependent. Your best bet is not to use
it at all. Using environment variables read-only is okay, as long as
you test for their presence in the implementation (a la &features).
Trying to set environment variables is pretty scary, though :-).
--
-Richard L. Goerwitz goer%midway@uchicago.bitnet
goer@midway.uchicago.edu rutgers!oddjob!ellis!goer